<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" th:src="@{/js/jquery.js}"></script>
    <script type="text/javascript">
        $(function () {
            $.ajax({
                url: "http://www.b.com:9000/demo/cookie?cookieName=currentTime",
                // dataType: "jsonp",
                success:function(data){
                    console.log(data)
                    $("#time").text(data)
                }
            })
        })
    </script>
</head>
<body>
    <h1>我是index</h1>
    <p id="time" th:text="${lastRequestTime}"></p>
</body>
</html>
